package com.example.demo.service;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Proxy;

public class AopProxy {
    public static <T> T createProxy(Object target, InvocationHandler handler, Class<?>... interfaces) {
        return (T) Proxy.newProxyInstance(target.getClass().getClassLoader(), interfaces, handler);
    }
}
